<?php
/**
 * Created by PhpStorm.
 * User: yanghe
 * Date: 2016/4/26
 * Time: 16:01
 */
Route::group(["namespace"=>"User"],function()
{
    Route::get("/login",function() { return view("user.login");});
    Route::post("/_login","UserController@login");
    Route::get("/main",function() { return view("user.main");})->middleware(['CheckLogin']);
    Route::get("/logout","UserController@logout");
});